package com.aoxiang.zbox.mapper;

import com.aoxiang.zbox.model.entity.TodoSort;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

/**
 * Description:
 *
 * @author: aoxiang
 * @create: 2025-03-08 20:27
 **/
@Mapper
public interface TodoSortMapper extends BaseMapper<TodoSort> {

    @Select("select max(show_sort) from todo_sort where label_id = #{labelId}")
    Integer selectMaxSort(@Param("labelId") Long labelId);
}
